package com.example.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 缴费记录实体类
 * @author system
 */
@ApiModel(value = "缴费记录业务对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment_record")
public class PaymentRecord {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "记录ID")
    private BigInteger id; // 主键
    
    @ApiModelProperty(value = "员工地址")
    private String employeeAddress; // 员工地址
    
    @ApiModelProperty(value = "雇主地址")
    private String sponsorAddress; // 雇主地址
    
    @ApiModelProperty(value = "保险记录ID")
    private BigInteger insuranceRecordId; // 关联的保险记录ID
    
    @ApiModelProperty(value = "缴费金额")
    private BigDecimal paymentAmount; // 缴费金额
    
    @ApiModelProperty(value = "个人缴费金额")
    private BigDecimal personalAmount; // 个人缴费金额
    
    @ApiModelProperty(value = "雇主缴费金额")
    private BigDecimal sponsorAmount; // 雇主缴费金额
    
    @ApiModelProperty(value = "缴费基数")
    private Integer paymentBase; // 缴费基数
    
    @ApiModelProperty(value = "缴费月份")
    private String paymentMonth; // 缴费月份 格式：yyyy-MM
    
    @ApiModelProperty(value = "缴费状态")
    private Integer status; // 状态 0-未缴费 1-已缴费
    
    @ApiModelProperty(value = "缴费时间")
    private LocalDateTime paymentTime; // 缴费时间
    
    @ApiModelProperty(value = "缴费方式")
    private Integer paymentMethod; // 缴费方式 1-个人缴费 2-单位缴费 3-补缴
    
    @ApiModelProperty(value = "备注")
    private String remark; // 备注
    
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime; // 创建时间
    
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime; // 更新时间
}